#include "Archive.h"
#include <vector>
#include <string>

Archives & Archives::getInstance() {
	static Archives archives;
	return archives;
}

void Archives::addArchive(int val, std::string name, int pos) {
	if(pos - 1 == Total) {
		gameval.push_back(val);
		ArchiveName.push_back(name);
		Total++;
	} else {
		gameval[pos - 1] = val;
		ArchiveName[pos - 1] = name;
	}
	
}

int Archives::total() const {
	return Total;
}

int Archives::getArchiveVal(int num) const {
	return gameval[num];
}

std::string Archives::getArchiveName(int num) const {
	return ArchiveName[num];
}
